package cn.edu.csust.tysp.backend.dao;

import cn.edu.csust.tysp.backend.domain.Audio;
import cn.edu.csust.tysp.backend.domain.AudioExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AudioMapper {
    long countByExample(AudioExample example);

    int deleteByExample(AudioExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Audio record);

    int insertSelective(Audio record);

    List<Audio> selectByExample(AudioExample example);

    Audio selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Audio record, @Param("example") AudioExample example);

    int updateByExample(@Param("record") Audio record, @Param("example") AudioExample example);

    int updateByPrimaryKeySelective(Audio record);

    int updateByPrimaryKey(Audio record);

    String selectURLbySheetId(int sheetId);
}